package guoanmaker.provider.business.modelnobind;

import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
/**
 * 
* @ClassName: Appraise 
* @Description: 评价业务bean
* @author Yvonne_MGL
* @date 2017年8月29日 下午7:52:28 
*  
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class Appraise {
	private String commodityName; //商品名称
	private Double averageValue;//平均分
	private String appraiseUser;//评价人
	private Date appraiseTime;//评价时间 
	private String appraise;//评价内容
	private String info;//评价信息，格式为   评价类别名称@分数,评价类别名称@分数,评价类别名称@分数,...

	private String portrait;//touxiang
	private String userId;
	private String reply;  //商家回复
	private Date replyTime;   //商家回复时间
	private String username;   //用户名(tel)
	private String id;   //评价id, 用于商家回复

	public Appraise(String commodityName, Double averageValue, String appraiseUser, Date appraiseTime, String appraise, String info, String portrait, String userId, String reply, Date replyTime, String username) {
		this.commodityName = commodityName;
		this.averageValue = averageValue;
		this.appraiseUser = appraiseUser;
		this.appraiseTime = appraiseTime;
		this.appraise = appraise;
		this.info = info;
		this.portrait = portrait;
		this.userId = userId;
		this.reply = reply;
		this.replyTime = replyTime;
		this.username = username;
	}

	public Appraise(String commodityName, Double averageValue, String appraiseUser, Date appraiseTime, String appraise, String info, String portrait, String userId, String reply, Date replyTime) {
		this.commodityName = commodityName;
		this.averageValue = averageValue;
		this.appraiseUser = appraiseUser;
		this.appraiseTime = appraiseTime;
		this.appraise = appraise;
		this.info = info;
		this.portrait = portrait;
		this.userId = userId;
		this.reply = reply;
		this.replyTime = replyTime;
	}

	public Appraise(String commodityName, Double averageValue, String appraiseUser, Date appraiseTime, String appraise, String info, String portrait, String userId) {
		this.commodityName = commodityName;
		this.averageValue = averageValue;
		this.appraiseUser = appraiseUser;
		this.appraiseTime = appraiseTime;
		this.appraise = appraise;
		this.info = info;
		this.portrait = portrait;
		this.userId = userId;
	}

	public Appraise(String commodityName, Double averageValue, String appraiseUser, Date appraiseTime, String appraise, String info) {
		this.commodityName = commodityName;
		this.averageValue = averageValue;
		this.appraiseUser = appraiseUser;
		this.appraiseTime = appraiseTime;
		this.appraise = appraise;
		this.info = info;
	}


}
